[picker dismissModalViewControllerAnimated:YES]; not working

Posted by shishir.bobby on Stack Overflow See other posts from Stack Overflow or by shishir.bobby
Published on 2012-04-06T02:59:07Z Indexed on 2012/04/06 5:29 UTC
Read the original article Hit count: 183

Filed under:
|
|

I am using

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
}

for imagepicker and using

[picker dismissModalViewControllerAnimated:YES];

in iPad to dismiss the picker. also i tried using

- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker;{
    [picker dismissModalViewControllerAnimated:YES];
}

to dismiss the picker once it done the work. BUt its not dimissing it. when i tap anywhere in the screen, than only it gets dismiss.

What i am doing wrong to dismiss the imagepicker?

Many thnkas

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ios